Button

public enum Button

A DOM mouse button.

Entries

Link copied to clipboard

A main mouse button. Usually the left button or the un-initialized state.

Link copied to clipboard

An auxiliary button. Usually the wheel button or the middle button (if present).

Link copied to clipboard

A secondary button. Usually the right button.

Link copied to clipboard

A fourth button. Typically the Browser Back button.

Link copied to clipboard

A fifth button. Typically the Browser Forward button.

Functions

Link copied to clipboard
public int number()
Returns a number of the button.
Link copied to clipboard
public static MouseEvent.Button of(int number)
Returns the Button instance for the given value.
Link copied to clipboard
public static MouseEvent.Button valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<MouseEvent.Button> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.